using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Xpo;
namespace Ascent.QiPei.Module.BusinessObjects.Systems
{
  [DefaultClassOptions]
  [DevExpress.Persistent.Base.NavigationItemAttribute("系统管理")]
  [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("选项")]
  public partial class Option : DevExpress.Persistent.BaseImpl.BaseObject
  {
    private System.String _companyName;
    private System.Int16 _taxRate;
    private System.Int32 _lockPOPeriod;
    private System.Int32 _maxNegativePeriod;
    private System.Boolean _isNegativeStocks;
    private System.Boolean _defaultLastPrice;
    public Option(DevExpress.Xpo.Session session)
      : base(session)
    {
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("默认上次拿货价")]
    public System.Boolean DefaultLastPrice
    {
      get
      {
        return _defaultLastPrice;
      }
      set
      {
        SetPropertyValue("DefaultLastPrice", ref _defaultLastPrice, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("允许负库存")]
    public System.Boolean IsNegativeStocks
    {
      get
      {
        return _isNegativeStocks;
      }
      set
      {
        SetPropertyValue("IsNegativeStocks", ref _isNegativeStocks, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("允许负库存天数(0表示不限制)")]
    public System.Int32 MaxNegativePeriod
    {
      get
      {
        return _maxNegativePeriod;
      }
      set
      {
        SetPropertyValue("MaxNegativePeriod", ref _maxNegativePeriod, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("税率%")]
    public System.Int16 TaxRate
    {
      get
      {
        return _taxRate;
      }
      set
      {
        SetPropertyValue("TaxRate", ref _taxRate, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("单据可修改小时(0表示不限制)")]
    public System.Int32 LockPOPeriod
    {
      get
      {
        return _lockPOPeriod;
      }
      set
      {
        SetPropertyValue("LockPOPeriod", ref _lockPOPeriod, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute(" 公司名称")]
    public System.String CompanyName
    {
      get
      {
        return _companyName;
      }
      set
      {
        SetPropertyValue("CompanyName", ref _companyName, value);
      }
    }
  }
}
